﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "TempTest_Purchase";
	string DBTablePK = "ID";
	string DBTableTitle = "Title";
	Business.Platform.Dictionary BDictionary = new Business.Platform.Dictionary();
	Business.Platform.WorkFlow BWorkFlow = new Business.Platform.WorkFlow();
	Business.Platform.WorkFlowTask BWorkFlowTask = new Business.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus);
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="2" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="TempTest_Purchase.Title" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="TempTest_Purchase" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="Title" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(function (){
		formrun.initData(initData, "TempTest_Purchase", fieldStatus, displayModel);
	});
</script>
<p><br/></p><p><br/></p><p style="text-align: center;"><span style="font-size: 20px;"><strong>物资采购申请</strong></span><br/></p><table class="flowformtable" data-sort="sortDisabled" cellpadding="0" cellspacing="1"><tbody><tr class="firstRow"><td style="word-break: break-all;" valign="top" width="102">申请人：<br/></td><td style="word-break: break-all;" valign="top" width="434"><input rootid="" unit="0" workgroup="0" user="1" station="0" dept="0" title="" class="mymember" isflow="1" type1="flow_org" id="TempTest_Purchase.UserID" name="TempTest_Purchase.UserID" value="u_@Business.Platform.Users.CurrentUserID.ToString()" more="0" type="text"/> </td><td style="word-break: break-all;" valign="top" width="97">部门：</td><td valign="top" width="439"><input rootid="" unit="0" workgroup="0" user="0" station="0" dept="1" title="" class="mymember" isflow="1" type1="flow_org" id="TempTest_Purchase.UserDept" name="TempTest_Purchase.UserDept" value="@(Business.Platform.Users.CurrentDeptID)" more="0" type="text"/></td></tr><tr><td style="word-break: break-all;" valign="top" width="102">申请日期：<br/></td><td style="word-break: break-all;" valign="top" width="434"><input type1="flow_datetime" id="TempTest_Purchase.SqDateTime" name="TempTest_Purchase.SqDateTime" value="@(Utility.DateTimeNew.ShortDate)" defaultvalue="@(Utility.DateTimeNew.ShortDate)" istime="0" daybefor="0" dayafter="1" currentmonth="0" isflow="1" class="mycalendar" title="" type="text"/> <input id="TempTest_Purchase.Title" name="TempTest_Purchase.Title" type1="flow_hidden" value="@(Business.Platform.Users.CurrentDeptName)@(Business.Platform.Users.CurrentUserName)的物资采购申请" type="hidden"/></td><td style="word-break: break-all;" valign="top" width="97">备注：</td><td valign="top" width="439"><input title="" class="mytext" isflow="1" id="TempTest_Purchase.Note" type1="flow_text" name="TempTest_Purchase.Note" value="" style="width:80%" valuetype="0" type="text"/></td></tr><tr><td colspan="4" rowspan="1" style="word-break: break-all;" valign="top">申请明细：<br/></td></tr><tr><td colspan="4" valign="top"><table class="flowformsubtable" style="width:99%;margin:0 auto;" issubflowtable="1" id="subtable_TempTest_PurchaseList_ID_ID_PurchaseID" cellpadding="0" cellspacing="1"><thead><tr><td>物资名称<input name="flowsubtable_id" value="TempTest_PurchaseList_ID_ID_PurchaseID" type="hidden"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtable" value="TempTest_PurchaseList" type="hidden"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_primarytablefiled" value="ID" type="hidden"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtableprimarykey" value="ID" type="hidden"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtablerelationfield" value="PurchaseID" type="hidden"/></td><td>型号</td><td>单位</td><td>数量</td><td>预计金额</td><td>拟购日期</td><td>类型</td><td>备注</td><td></td></tr></thead><tbody><tr type1="listtr"><td colname="TempTest_PurchaseList_Name" iscount="0"><input name="hidden_guid_TempTest_PurchaseList_ID_ID_PurchaseID" value="2b93d646410ad8afb91aced916752142" type="hidden"/><input name="flowsubid" value="TempTest_PurchaseList_ID_ID_PurchaseID" type="hidden"/><input class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_2b93d646410ad8afb91aced916752142_TempTest_PurchaseList_Name" colname="TempTest_PurchaseList_Name" style="width:100px" value="" valuetype="0" type="text"/></td><td colname="TempTest_PurchaseList_Model" iscount="0"><input class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_2b93d646410ad8afb91aced916752142_TempTest_PurchaseList_Model" colname="TempTest_PurchaseList_Model" style="width:100px" value="" valuetype="0" type="text"/></td><td colname="TempTest_PurchaseList_Unit" iscount="0"><input class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_2b93d646410ad8afb91aced916752142_TempTest_PurchaseList_Unit" colname="TempTest_PurchaseList_Unit" style="width:100px" value="" valuetype="0" type="text"/></td><td colname="TempTest_PurchaseList_Quantity" iscount="0"><input class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_2b93d646410ad8afb91aced916752142_TempTest_PurchaseList_Quantity" colname="TempTest_PurchaseList_Quantity" style="width:100px" value="" valuetype="1" type="text"/></td><td colname="TempTest_PurchaseList_Sum1" iscount="1"><input class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_2b93d646410ad8afb91aced916752142_TempTest_PurchaseList_Sum1" colname="TempTest_PurchaseList_Sum1" style="width:100px" value="" iscount="1" onblur="formrun.subtableCount('TempTest_PurchaseList_ID_ID_PurchaseID','TempTest_PurchaseList_Sum1','countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Sum1');" valuetype="4" type="text"/></td><td colname="TempTest_PurchaseList_Date" iscount="0"><input class="mycalendar" name="TempTest_PurchaseList_ID_ID_PurchaseID_2b93d646410ad8afb91aced916752142_TempTest_PurchaseList_Date" issubflow="1" type1="subflow_datetime" value="" colname="TempTest_PurchaseList_Date" style="width:80px" type="text"/></td><td colname="TempTest_PurchaseList_Type" iscount="0"><select class="myselect" name="TempTest_PurchaseList_ID_ID_PurchaseID_2b93d646410ad8afb91aced916752142_TempTest_PurchaseList_Type" issubflow="1" type1="subflow_select" colname="TempTest_PurchaseList_Type" style="width:100px"><option value=""></option><option value="办公用品">办公用品</option><option value="仪器设备">仪器设备</option></select></td><td colname="TempTest_PurchaseList_Note" iscount="0"><input class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_2b93d646410ad8afb91aced916752142_TempTest_PurchaseList_Note" colname="TempTest_PurchaseList_Note" style="width:100px" value="" valuetype="0" type="text"/></td><td><input class="mybutton" style="margin-right:4px;" value="增加" onclick="formrun.subtableNewRow(this);" type="button"/><input class="mybutton" value="删除" onclick="formrun.subtableDeleteRow(this);" type="button"/></td></tr><tr type1="counttr"><td colspan="11" style="padding-right:20px; text-align:right;" align="right"><span style="margin-right:10px;">预计金额合计：<label id="countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Sum1">0</label></span></td></tr></tbody></table></td></tr></tbody></table><p><br/></p>